<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用章申请 - OA流程审批系统</title>
    <link href="../css/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f5f6fa;
        }
    </style>
</head>
<body class="p-4">
    <!-- 顶部导航 -->
    <div class="flex items-center mb-4">
        <i class="fas fa-arrow-left text-gray-600 mr-4"></i>
        <h1 class="text-lg font-semibold">用章申请</h1>
    </div>

    <!-- 用章申请表单 -->
    <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
        <h3 class="text-lg font-semibold mb-4">用章申请</h3>
        <form class="space-y-4">
            <!-- 印章类型 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">印章类型</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>公司公章</option>
                    <option>合同专用章</option>
                    <option>财务专用章</option>
                    <option>法人章</option>
                    <option>部门章</option>
                </select>
            </div>

            <!-- 关联项目 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">关联项目</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>项目A - 产品开发</option>
                    <option>项目B - 系统维护</option>
                    <option>项目C - 客户支持</option>
                </select>
            </div>

            <!-- 用章文件 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用章文件</label>
                <div class="space-y-2">
                    <div class="flex items-center space-x-2">
                        <input type="text" class="flex-1 p-2 border rounded-lg" placeholder="文件名称">
                        <button type="button" class="p-2 text-red-500">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    <button type="button" class="w-full py-2 border border-dashed border-gray-300 rounded-lg text-gray-500">
                        <i class="fas fa-plus mr-2"></i>添加文件
                    </button>
                </div>
            </div>

            <!-- 文件上传 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">文件上传</label>
                <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                    <i class="fas fa-cloud-upload-alt text-gray-400 text-2xl mb-2"></i>
                    <p class="text-sm text-gray-500">点击或拖拽文件到此处上传</p>
                </div>
            </div>

            <!-- 用章事由 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用章事由</label>
                <textarea class="w-full p-2 border rounded-lg" rows="3" placeholder="请详细说明用章事由..."></textarea>
            </div>

            <!-- 用章时间 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用章时间</label>
                <input type="datetime-local" class="w-full p-2 border rounded-lg">
            </div>

            <!-- 紧急程度 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">紧急程度</label>
                <div class="grid grid-cols-3 gap-2">
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>普通</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>加急</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>特急</span>
                    </label>
                </div>
            </div>

            <!-- 审批人 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">审批人</label>
                <div class="flex items-center p-2 border rounded-lg">
                    <img src="https://via.placeholder.com/32" class="w-8 h-8 rounded-full mr-2">
                    <div>
                        <p class="font-medium">李四</p>
                        <p class="text-sm text-gray-500">行政部经理</p>
                    </div>
                </div>
            </div>

            <!-- 提交按钮 -->
            <button type="submit" class="w-full py-3 bg-blue-500 text-white rounded-lg">
                提交申请
            </button>
        </form>
    </div>

    <!-- 用章记录 -->
    <div class="bg-white rounded-lg shadow-sm p-4">
        <h3 class="text-lg font-semibold mb-3">用章记录</h3>
        <div class="space-y-3">
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">公司公章</p>
                        <p class="text-sm text-gray-500">2024-03-20</p>
                    </div>
                    <span class="text-sm text-green-500">已通过</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目A - 产品开发</p>
                <p class="text-sm text-gray-600">文件：合作协议</p>
                <p class="text-sm text-gray-600">事由：签署项目合作协议</p>
            </div>
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">合同专用章</p>
                        <p class="text-sm text-gray-500">2024-03-15</p>
                    </div>
                    <span class="text-sm text-yellow-500">审批中</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目B - 系统维护</p>
                <p class="text-sm text-gray-600">文件：服务合同</p>
                <p class="text-sm text-gray-600">事由：签署服务合同</p>
            </div>
            <div class="p-3">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">财务专用章</p>
                        <p class="text-sm text-gray-500">2024-03-10</p>
                    </div>
                    <span class="text-sm text-red-500">已拒绝</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目C - 客户支持</p>
                <p class="text-sm text-gray-600">文件：付款申请</p>
                <p class="text-sm text-gray-600">事由：付款申请盖章</p>
            </div>
        </div>
    </div>
</body>
</html> 